package com.lbx;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * @author lbx create by 2021/6/8 14:33
 * @apiNote WebConfig
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Resource
    private MyConfig myConfig;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(myConfig).excludePathPatterns("/jquery-3.5.1.js","/favicon.ico");
    }
}
